import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/authcenter/sys-user-auth/login',
    method: 'post',
    data
  })
}

export function getUsersInfo(token) {
  return request({
    url: '/authcenter/sys-user-auth/getUsersInfo',
    method: 'get',
    params: { token }
  })
}

export function findMenuList(token,appId,navId) {
  return request({
    url: '/authcenter/sys-user-auth/findMenuList',
    method: 'get',
    params: { token: token, appId: appId, navId: navId }
  })
}

export function logout(data) {
  return request({
    url: '/authcenter/sys-user-auth/logout',
    method: 'post',
    data
  })
}

export function getCode() {
  return request({
    url: '/authcenter/security-code/getImageCode',
    method: 'get'
  })
}
